define("dojox/xml/Script", [
    "dojo/_base/kernel", // dojo.getObject
    "dojo/_base/declare",
    "dojo/parser",
    "./widgetParser"
], function (declare, parser, widgetParser) {

    dojo.getObject("xml", true, dojox);

    declare("dojox.xml.Script", null, {
        constructor:function (props, node) {
            parser.instantiate(
                widgetParser._processScript(node)
            );
        }
    });

    return dojox.xml.Script;

});
